package com.edu.internship.busi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.internship.busi.dto.DictionaryOptionDTO;
import com.edu.internship.busi.entity.DictionaryOption;

import java.util.List;

/**
 * code is far away from bug with the animal protecting
 *
 * @author lishiquan
 * @description <p>DictionaryOption 的service</p>
 * @date 2020-07-06
 */
public interface IDictionaryOptionService extends IService<DictionaryOption> {

    /**
     * 新增DictionaryOption
     *
     * @param dto DictionaryOptionDTO
     */
    void createDictionaryOption(DictionaryOptionDTO dto);

    /**
     * 修改DictionaryOption
     *
     * @param dto DictionaryOptionDTO
     */
    void updateDictionaryOption(DictionaryOptionDTO dto);

    /**
     * 删除DictionaryOption
     *
     * @param ids 主键列表
     */
    void removeDictionaryOption(List<String> ids);

    /**
     * 根据字典id查询字典项列表
     *
     * @param dictId 字典id
     * @return 字典项列表
     */
    List<DictionaryOption> selectByDictId(String dictId);

    /**
     * 根据字典id进行删除
     *
     * @param dictId 字典id
     */
    void deleteDictionaryOptionByDictId(String dictId);
}